package com.abbas.CayTcore.xview

import android.content.Context
import android.util.AttributeSet
import android.widget.ListView

class MListView(context: Context?, attrs: AttributeSet?) : ListView(context, attrs) {


    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(
            widthMeasureSpec,
            MeasureSpec.makeMeasureSpec(Int.MAX_VALUE shr 2, MeasureSpec.AT_MOST)
        )
    }
}